
using ProcessManagementApi.Extensions;

namespace ProcessManagementApi
{
	public class Program
	{
		public static void Main(string[] args)
		{
			var builder = WebApplication.CreateBuilder(args).Inject();

			var app = builder.Build();

			// Configure the HTTP request pipeline.
			//if (app.Environment.IsDevelopment())
			{
				app.UseSwagger();
				app.UseSwaggerUI();
			}
			//����
			app.UseCors(x => x.AllowAnyHeader().AllowAnyMethod().AllowAnyOrigin());
			
			// 启用静态文件支持，用于访问上传的文件
			app.UseStaticFiles();
			
			app.UseHttpsRedirection();

			app.UseAuthorization();


			app.MapControllers();

			app.Run();
		}
	}
}
